package com.example.backendmanage.controller;

import com.example.backendmanage.common.AjaxResult;
import com.example.backendmanage.mapper.WareHouseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/warehouse")
public class WareHouseController {
    @Autowired
    WareHouseMapper houseMapper;


    @RequestMapping("/findAll")
    public AjaxResult findAll(){
        return AjaxResult.success(houseMapper.findAll());
    }
}
